package com.nbsaas.boot.order.ext.apis;

import com.nbsaas.boot.order.ext.domain.request.OrderExtRequest;
import com.nbsaas.boot.rest.response.ResponseObject;

import java.math.BigDecimal;

public interface OrderExtApi {

    ResponseObject<BigDecimal> sum();


    ResponseObject<?> create(OrderExtRequest request);


    /**
     * 重新付款
     *
     * @param request
     * @return
     */
    ResponseObject<?> repay(OrderExtRequest request);

    /**
     * 取消订单
     *
     * @param request
     * @return
     */
    ResponseObject<?> cancel(OrderExtRequest request);

}
